home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / pccp019.zip / CCODES.C < prev    next >
C/C++ Source or Header  |  1992-04-29  |  399b  |  32 lines

  1. #include<stdio.h>
  2. #include<graph.h>
  3.  
  4. main()
  5.     {
  6.     char str[16];
  7.     int i;
  8.     for(i=0;i<256;++i)
  9.         {
  10.         if(!(i%16))
  11.             {
  12.             sprintf(str, "\n");
  13.             _outtext(str);
  14.             }
  15.         else
  16.             {
  17.             sprintf(str, " ");
  18.             _outtext(str);
  19.             }
  20.         if((i!=10)&&(i!=13))
  21.             {
  22.             sprintf(str, "%02x>%c", i, i);
  23.             _outtext(str);
  24.             }
  25.         else
  26.             {
  27.             sprintf(str, "    ");
  28.             _outtext(str);
  29.             }
  30.         }
  31.     }
  32.